﻿@model HRM.Models.Employee
@{
    ViewBag.Title = "Create";
}
<h2>
    Create</h2>
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
@using (Html.BeginForm())
{
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>Employee</legend>
        <table class="addEmployee">
            <tr>
                <td valign="top" align="left">
                    <div class="editor-label">
                        @Html.LabelFor(model => model.Name)
                    </div>
                    <div class="editor-field">
                        @Html.EditorFor(model => model.Name)
                        @Html.ValidationMessageFor(model => model.Name)
                    </div>
                    <div class="editor-label">
                        @Html.LabelFor(model => model.FathersName)
                    </div>
                    <div class="editor-field">
                        @Html.EditorFor(model => model.FathersName)
                        @Html.ValidationMessageFor(model => model.FathersName)
                    </div>
                    <div class="editor-label">
                        @Html.LabelFor(model => model.Blood)
                    </div>
                    <div class="editor-field">
                        @Html.EditorFor(model => model.Blood)
                        @Html.ValidationMessageFor(model => model.Blood)
                    </div>
                    <div class="editor-label">
                        @Html.LabelFor(model => model.Email)
                    </div>
                    <div class="editor-field">
                        @Html.EditorFor(model => model.Email)
                        @Html.ValidationMessageFor(model => model.Email)
                    </div>
                    <div class="editor-label">
                        @Html.LabelFor(model => model.DOB)
                    </div>
                    <div class="editor-field">
                        @Html.EditorFor(model => model.DOB)
                        @Html.ValidationMessageFor(model => model.DOB)
                    </div>
                    <div class="editor-label">
                        @Html.LabelFor(model => model.JoiningDate)
                    </div>
                    <div class="editor-field">
                        @Html.EditorFor(model => model.JoiningDate)
                        @Html.ValidationMessageFor(model => model.JoiningDate)
                    </div>
                    <div class="editor-label">
                        @Html.LabelFor(model => model.ContractFinishDate)
                    </div>
                    <div class="editor-field">
                        @Html.EditorFor(model => model.ContractFinishDate)
                        @Html.ValidationMessageFor(model => model.ContractFinishDate)
                    </div>
                    <div class="editor-label">
                        @Html.LabelFor(model => model.Education)
                    </div>
                    <div class="editor-field">
                        @Html.EditorFor(model => model.Education)
                        @Html.ValidationMessageFor(model => model.Education)
                    </div>
                    <div class="editor-label">
                        @Html.LabelFor(model => model.ProjectID, "Project")
                    </div>
                    <div class="editor-field">
                        @Html.DropDownList("ProjectID", "--Select Project--")
                        @Html.ValidationMessageFor(model => model.ProjectID)
                    </div>
                    @Html.ActionLink("Add Project","Create","Project")
                    <div class="editor-label">
                        @Html.LabelFor(model => model.DesignationID, "Designation")
                    </div>
                    <div class="editor-field">
                        @Html.DropDownList("DesignationID", "--Select Designation--")
                        @Html.ValidationMessageFor(model => model.DesignationID)
                    </div>@Html.ActionLink("Add Designation","Create","Designation")
                </td>
                <td valign="top" align="left">
                    <div class="editor-label">
                        @Html.LabelFor(model => model.MothersName)
                    </div>
                    <div class="editor-field">
                        @Html.EditorFor(model => model.MothersName)
                        @Html.ValidationMessageFor(model => model.MothersName)
                    </div>
                    <div class="editor-label">
                        @Html.LabelFor(model => model.Address)
                    </div>
                    <div class="editor-field">
                        @Html.EditorFor(model => model.Address)
                        @Html.ValidationMessageFor(model => model.Address)
                    </div>
                    <div class="editor-label">
                        @Html.LabelFor(model => model.Sex)
                    </div>
                    <div class="editor-field">
                          @Html.EditorFor(model => model.Sex)
                    @*    @Html.DropDownList("Sex","--Select--")*@
                        @Html.ValidationMessageFor(model => model.Sex)
                    </div>
                    <div class="editor-label">
                        @Html.LabelFor(model => model.Resume)
                    </div>
                    <div class="editor-field">
                        @Html.EditorFor(model => model.Resume)
                        @Html.ValidationMessageFor(model => model.Resume)
                    </div>
                    <div class="editor-label">
                        @Html.LabelFor(model => model.Skill)
                    </div>
                    <div class="editor-field">
                        @Html.EditorFor(model => model.Skill)
                        @Html.ValidationMessageFor(model => model.Skill)
                    </div>
                    <div class="editor-label">
                        @Html.LabelFor(model => model.Nationality)
                    </div>
                    <div class="editor-field">
                        @Html.EditorFor(model => model.Nationality)
                        @Html.ValidationMessageFor(model => model.Nationality)
                    </div>
                    <div class="editor-label">
                        @Html.LabelFor(model => model.NID)
                    </div>
                    <div class="editor-field">
                        @Html.EditorFor(model => model.NID)
                        @Html.ValidationMessageFor(model => model.NID)
                    </div>
                    <div class="editor-label">
                        @Html.LabelFor(model => model.Status)
                    </div>
                    <div class="editor-field">
                        @Html.EditorFor(model => model.Status)
                        @Html.ValidationMessageFor(model => model.Status)
                    </div>
                    <div class="editor-label">
                        @Html.LabelFor(model => model.CatagoryID, "Catagory")
                    </div>
                    <div class="editor-field">
                        @Html.DropDownList("CatagoryID", "--Select Catagory--")
                        @Html.ValidationMessageFor(model => model.CatagoryID)
                    </div>@Html.ActionLink("Add Catagory", "Create", "Catagory")
                </td>
            </tr>
        </table>
        <p style="width: 100%; text-align: center">
            <input type="submit" class="submitButton" value="Save Employee" />
        </p>
    </fieldset>
}
<div>
    @Html.ActionLink("Back to List", "Index")
</div>
